package com.cloudkinto.service.stock;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.dto.stock.snap.StockAgeEntity;
import com.cloudkinto.dto.stock.snap.sku.StockSkuSnapPageDto;
import com.cloudkinto.entity.StockHistoryDetailDo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * service接口
 * </p>
 *
 * @author hua
 * @since 2024-12-03
 */
public interface StockHistoryDetailService extends IService<StockHistoryDetailDo> {


    SingleResult pageInit(Long tenantId,Long companyId);

    List<StockSkuSnapPageDto> getList(Map<String, Object> map);

    void productStockAgeExport(Map<String, Object> map, HttpServletResponse response);

    void boxStockAgeExport(Map<String, Object> map, HttpServletResponse response);

    PageResult productStockAge(Map<String, Object> map);

    PageResult productSegAge(Map<String, Object> map);

    void boxSegAgeExport(Map<String, Object> map, HttpServletResponse response);

    void productSegAgeExport(Map<String, Object> map, HttpServletResponse response);

    void insertBatchMy(List<StockAgeEntity> list);
}
